﻿using System;
using System.Reflection;
using System.Configuration;
using HDIDAL;

namespace DALFactory
{
    /// <summary>
    /// 数据层工厂
    /// </summary>
    public sealed class DataAccess
    {
        private static readonly string path = ConfigurationManager.AppSettings["WebDAL"];

        public static IHD_ADMIN Create_HD_ADMIN()
        {
            string CacheKey = path + ".HD_ADMIN";
            return (IHD_ADMIN)Assembly.Load(path).CreateInstance(CacheKey);
        }


    }
}

